package cn.well.cloud.modular.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.well.cloud.modular.model.User;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author zhh
 * @since 2020-04-22
 */
public interface UserMapper extends BaseMapper<User> {
	/**
	 * 获取用户步数
	 * @param userId
	 * @return
	 */
	Map<String, Object> getUserStep(@Param("userId")String userId,@Param("mapId")String mapId);
	/**
	 * 地图上用户
	 * @param department
	 * @return
	 */
	List<Map<String, Object>> listUserMap(@Param("company")String company,@Param("list")List<String> list,@Param("mapId")String mapId,@Param("userId")String userId);
	/**
	 * 用户步数
	 * @param userId
	 * @param startDate
	 * @param endDate
	 * @param day
	 * @return
	 */
	List<Map<String, Object>> listUserStepById(@Param("userId")String userId, @Param("startDate")String startDate,
			@Param("endDate")String endDate, @Param("day")String day);
	/**
	 * 获取用户步数
	 * @param userId
	 * @return
	 */
	int getUserAllStep(@Param("userId")String userId);

}
